package com.qfedu.micrograss.grass.controller;

import com.qfedu.common.core.common.R;
import com.qfedu.micrograss.grass.service.GrassLikeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("article/like")
public class GrassLikeController {
    @Resource
    private GrassLikeService grassLikeService;

    @GetMapping
    public R like(Integer articleId) {
        grassLikeService.like(articleId);
        return R.ok();
    }
}
